package com.bbx.api.sdk.net.passeger.conn;

import java.io.InputStream;

import android.content.Context;

import com.bbx.api.sdk.model.passanger.Return.LocationInfo;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.GeneralParser;

/**
 * @Path com.bbx.api.sdk.net.passeger.conn.LocationInfoNet.java
 * @Author 严旭文
 * @Date 2016-6-13 下午12:03:36
 * @Company 蓝海（福建）信息技术有限公司
 * @Description 位置信息
 */
public class LocationInfoNet extends BaseNetwork {
	public LocationInfoNet(Context context, String datas) {
		super(context, false);
		setData(datas);
	}

	public LocationInfoNet(Context context) {
		super(context, false);
	}

	public void setData(String datas) {
		super.setData(datas);
		url = LOCATION_INFO_URL;
		InputStream inputStream = getContentWithPOST((datas));
		if (inputStream != null) {
			parser = new GeneralParser(context, inputStream);
		}
	}

	@Override
	public Object getData() {
		return parser.getData(LocationInfo.class);
	}

}
